<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>用户中心</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            display: flex;
            height: 100vh;
            font-family: Arial, sans-serif;
        }
        /* 左侧导航栏 */
        .sidebar {
            width: 250px;
            background-color: #f7f7f7;
            border-right: 1px solid #ddd;
            padding: 10px;
            overflow-y: auto;
        }
        .sidebar h3 {
            font-size: 16px;
            margin: 15px 0;
            padding-left: 10px;
            color: #007bff;
            border-bottom: 1px solid #ddd;
        }
        .sidebar ul {
            list-style: none;
            padding: 0;
            margin: 10px 0;
        }
        .sidebar ul li {
            margin: 5px 0;
        }
        .sidebar ul li a {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: #333;
            padding: 10px;
            border-radius: 5px;
            transition: background-color 0.3s, color 0.3s;
            font-size: 14px;
        }
        .sidebar ul li a:hover {
            background-color: #007bff;
            color: white;
        }
        .sidebar ul li a span {
            width: 20px;
            margin-right: 10px;
            text-align: center;
        }
        .main-content {
            flex-grow: 1;
            height: 100%;
        }
        .main-content iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
    </style>
</head>
<body>
    <!-- 左侧导航栏 -->
    <div class="sidebar">
        <h3>功能</h3>
        <ul> <li><a href="{{ url_for('main.send_email') }}" target="contentFrame"><span>✉️</span>写信</a></li> 
            <li><a href="{{ url_for('main.inbox') }}" target="contentFrame"><span>📥</span>收件箱</a></li> 
            <li><a href="{{ url_for('main.sent_emails') }}" target="contentFrame"><span>📤</span>已发送</a></li> 
            <li><a href="{{ url_for('main.deleted_emails') }}" target="contentFrame"><span>🗑️</span>已删除</a></li> 
            <li><a href="{{ url_for('main.login') }}" class="logout-button"><span>🚪</span>退出登录</a></li> </ul>
    </div>
    <!-- 右侧内容区域 -->
    <div class="main-content">
        <iframe name="contentFrame" src="{{ url_for('main.inbox') }}"></iframe>
    </div>
</body>
</html>
